"""
  模块描述：短信统计功能client 调用demo
  @author 8526
  @date 2022-05-13 14:15:40
  版权所有 Copyright www.dahantc.com
"""

import common.util as util
import smsstatistics.param as param
import smsstatistics.smsstatisticsapi as api

client = api.SmsStatisticsClient('http://180.168.192.126:13866')

pwdMd5 = util.md5Encode("456.com")
account = "dhst8526"


# 短信统计方法demo
def smsStatisticsDemo():
    smsparam = param.SmsStatisticsParam(account, pwdMd5, '20220101', '20220301', 1, 0)
    res = client.sms_statistics(smsparam)
    print('短信统计响应响应', res.__dict__)


if __name__ == '__main__':
    smsStatisticsDemo()
